
$(':button#preview').click(function() {
  var $dialog, converter, title, value;
  title = $('#:titleId').val();
  $('#title').html('<b>' + title + '</b>');
  value = $('#:valueId').val();
  converter = new Markdown.Converter();
  $('#value').html(converter.makeHtml(value));
  $dialog = $("#question-preview");
  return $dialog.dialog("open");
});
